package com.ruoyi.shop.modules.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件对象 attachment
 * 
 * @author 朱津辰
 * @date 2024-05-22
 */
public class Attachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 文件名 */
    @Excel(name = "文件名")
    private String name;

    /** url地址 */
    @Excel(name = "url地址")
    private String url;

    /** 大小 */
    @Excel(name = "大小")
    private Long lenght;

    /** 扩展名 */
    private String ext;

    /** MD5摘要值 */
    private String md5;

    /** 认证状态 */
    @Excel(name = "认证状态")
    private String status;

    /** 乐观锁 */
    private Long revision;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setLenght(Long lenght) 
    {
        this.lenght = lenght;
    }

    public Long getLenght() 
    {
        return lenght;
    }
    public void setExt(String ext) 
    {
        this.ext = ext;
    }

    public String getExt() 
    {
        return ext;
    }
    public void setMd5(String md5) 
    {
        this.md5 = md5;
    }

    public String getMd5() 
    {
        return md5;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRevision(Long revision) 
    {
        this.revision = revision;
    }

    public Long getRevision() 
    {
        return revision;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("url", getUrl())
            .append("lenght", getLenght())
            .append("ext", getExt())
            .append("md5", getMd5())
            .append("status", getStatus())
            .append("revision", getRevision())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
